package org.jetnuke.dao;

import java.util.GregorianCalendar;
import java.util.List;

import org.jetnuke.entities.CalendarEvent;

public interface CalendarEventDAO {
	public int addNew(CalendarEvent ce)throws Exception;
	public List selectAllByUID(int uid)throws Exception;
	public List selectUpcomingByUID(int uid)throws Exception;
	public List selectPastByUID(int uid)throws Exception;
	public CalendarEvent selectByPK(int id)throws Exception;
	public List selectDayEvents(int uid, GregorianCalendar gc) throws Exception;
	public List selectRecurringEvents(int uid, GregorianCalendar gc) throws Exception;
	public List selectPeriodRecurringEvents(int id, GregorianCalendar firstDay, GregorianCalendar lastDay)throws Exception;
	public List selectDaysWithEvents(int uid,int year)throws Exception;
	public void update(CalendarEvent ce)throws Exception;
	public void deleteByPk(int id)throws Exception;
}
